/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.NationalityFacade;
import org.ipti.br.tag.entity.Nationality;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class NationalityBO implements Serializable {

    @Inject
    private NationalityFacade nationalityDAO;

    public NationalityFacade getNationalityDAO() {
        return nationalityDAO;
    }

    public void create(Nationality nationality) {
        getNationalityDAO().create(nationality);
    }

    public void edit(Nationality nationality) {
        getNationalityDAO().edit(nationality);
    }

    public void remove(Nationality nationality) {
        getNationalityDAO().remove(nationality);
    }

    public Nationality find(Object id) {
        return getNationalityDAO().find(id);
    }

    public List<Nationality> findAll() {
        return getNationalityDAO().findAll();
    }

    public void editForSynchronization(Nationality nationality) {
        getNationalityDAO().editForSynchronization(nationality);
    }

    public List<Nationality> findAllOrder() {
        return getNationalityDAO().findAllOrder();
    }
}
